package com.gsdkjgpt4.sys.mapper;

import com.gsdkjgpt4.sys.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rendong
 * @since 2024-01-18
 */
public interface UserMapper extends BaseMapper<User> {
    List<User> getUserByUserName(String userName);

    List<User> getUserByUserId(int userId);

    void updateUserName(Integer userId, String userName, String passWord);

    void updatePosition(Integer userId);

    void updateLimitedNumber(Integer userId, Integer limitedNumber);

    void signUp(String userName, String passWord);
}
